home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 34.zip / BS1 part 34 / FredFish PD 319.adf / CNewsSrc / cnews.src.lzh / relay / ihave_no.c < prev    next >
C/C++ Source or Header  |  1989-06-27  |  540b  |  39 lines

  1. /*
  2.  * Reject the Usenet ihave/sendme control messages.
  3.  */
  4.  
  5. #include <stdio.h>
  6. #ifndef AMIGA
  7. #  include <sys/types.h>
  8. #endif /* AMIGA */
  9.  
  10. #include "news.h"
  11. #include "headers.h"
  12. #include "article.h"
  13.  
  14. static void
  15. ignore(cmd, args)
  16. char *cmd, *args;
  17. {
  18.     (void) fprintf(stderr,
  19.         "%s: `%s %s' control ignored\n", progname, cmd, args);
  20. }
  21.  
  22. /* ARGSUSED art */
  23. void
  24. ihave(args, art)
  25. char *args;
  26. struct article *art;
  27. {
  28.     ignore("ihave", args);
  29. }
  30.  
  31. /* ARGSUSED art */
  32. void
  33. sendme(args, art)
  34. char *args;
  35. struct article *art;
  36. {
  37.     ignore("sendme", args);
  38. }
  39.